package bit.springaopdemo.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@Aspect
public class MyAspectDemo {

//    @Before("@annotation(bit.springaopdemo.aspect.MyAspect)")
@Before("@annotation(org.springframework.web.bind.annotation.RequestMapping)")

public void doBefore(){
        log.info("doBefore啊啊啊啊啊啊啊啊啊啊");
    }
}
